package edu.cibertec.alquiler.service;

import java.util.List;

import edu.cibertec.alquiler.dao.CombosDAO;
import edu.cibertec.alquiler.entity.Categoria;
import edu.cibertec.alquiler.entity.Estado;
import edu.cibertec.alquiler.entity.Genero;
import edu.cibertec.alquiler.entity.Perfil;
import edu.cibertec.alquiler.factory.DAOFactory;

public class CombosDaoService implements CombosService {

	private CombosDAO dao;
	private DAOFactory factoria;
	
	public CombosDaoService(int bd) {
		factoria= DAOFactory.getDAOFactory(bd);
		this.dao=factoria.getCombosDAO();
	}

	@Override
	public List<Genero> listarGeneroCombo() throws Exception {
		return dao.listarGeneroCombo();
	}

	@Override
	public List<Estado> listarEstadoCombo() throws Exception {
		// TODO Auto-generated method stub
		return dao.listarEstadoCombo();
	}

	@Override
	public List<Categoria> listarCategoriaCombo() throws Exception {
		// TODO Auto-generated method stub
		return dao.listarCategoriaCombo();
	}

	@Override
	public List<Perfil> listarPerfilCombo() throws Exception {
		// TODO Auto-generated method stub
		return dao.listarPerfilCombo();
	}
}
